<?php echo $this->Html->css('cart', 'stylesheet', array('type' => 'text/css')); ?>
<div class="content-above" style="overflow: auto;">
    <h2 class="title"><a href="#"><?php echo __('Giỏ hàng của bạn');?></a></h2>
	<div class="wd-table">
	<table cellspacing="0" cellpadding="0">
		<thead>
			<tr>
				<th class="wd-left"><?php echo __('Sản phẩm');?></th>
				<th><?php echo __('Số lượng');?></th>
				<th>Đơn giá</th>
				<th>Chức năng</th>
			</tr>
		</thead>
		<tbody>
            <?php foreach($checkout as $item):?>
			<tr>
				<td class="wd-left">
					<h3><a href="<?php echo $html->url(array('plugin' => 'products','controller' => 'products','action' => 'view',$item['alias']))  ;?>">
                    <?php echo $item['title']; ?>                   
        		</a>
                </h3>
				</td>
				<td><a href="#"><?php echo $item['qty']; ?></a> </td>
				<td><a href="#"><?php echo $item['price']; ?></a> </td>
				<td><a href="<?php echo $html->url(array('plugin' => 'products','controller' => 'products','action' => 'remove',$item['alias']))  ;?>" class="wd-button"><?php echo __('Xóa') ?></a></td>
			</tr>
            <?php endforeach;?>			
		</tbody>
	</table>
    </div>
    <?php if(count($checkout)): ?>
    <h3><a href="<?php echo $html->url(array('plugin' => 'products','controller' => 'products','action' => 'order'))  ;?>"><?php echo __('Nhấn vào đây để đặt hàng')?></a></h3>
    <?php endif; ?>
</div>


<div class="content-below">
<div class="home_products">
<h3 class="title"><a href="#"><?php echo __('SẢN PHẨM TIÊU BIỂU');?></a></h3>
<ul>
    <?php foreach($products as $product):?>
    <li>
        <a href="<?php echo $html->url(array('plugin' => 'products','controller' => 'products','action' => 'view',$product['Product']['alias']))  ;?>">
            <?php
            if($product['Product']['image'] != '')
                echo $html->image('/files/products/'. $html->getThumbnailName($product['Product']['image']));
            else
                echo $html->image('/files/products/no-picture.jpg');
            ?> 
			<span><?php echo $product['Product']['title']; ?></span>                    
		</a>
        <br />
            <span><strong><?php echo $product['Product']['price']; ?></strong></span>
        <a class="order" href="<?php echo $html->url(array('plugin' => 'products','controller' => 'products','action' => 'add_cart',$product['Product']['alias']))  ;?>"><?php echo __('Mua hàng');?></a>
    </li>
    <?php endforeach; ?>

</ul>
</div>

<div class="home_video">
<h3 class="title"><a href="#">VIDEO</a></h3>  
<div class="video_content">   
		<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/bJNR3uLAWpg&amp;hl=en_US&amp;fs=1&amp;" width="258" height="167"><param name="movie" value="http://www.youtube.com/v/bJNR3uLAWpg&amp;hl=en_US&amp;fs=1&amp;" /><param name="FlashVars" value="playerMode=embedded" /></object>
</div>
</div>
</div>